public class ChaRu {
    public void Cha_ru(int[] arr){
        for (int i = 1; i < arr.length; i++) {
            int tem  = arr[i];
            for (int j = i-1; j >= 0 ; j--) {
                if(tem > arr[j]){
                    arr[j+1] = arr[j];
                    arr[j] = tem;
                }
                else {
                    break;
                }

            }
        }
    }
}
